package com.yupi.usercenter.model.Enum;



public enum TeamStatusEnum {
    /**
     * 枚举类
     */
        PUBLIC(0, "公开"),//公开
        PRIVATE(1, "私有"),//私有
        SECRET(2, "加密");//密


    private int value;
    private String text;




    public static TeamStatusEnum getEnumByVale(Integer value){
        if (value == null){
            return null;
        }
        for (TeamStatusEnum teamStatusEnum : TeamStatusEnum.values()){
            if(teamStatusEnum.getValue() == value) return teamStatusEnum;
        }
        return null;
    }
    TeamStatusEnum(int value, String text){
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
